<template>
	<view>
		<u-navbar :is-fixed='true' :background="{backgroundColor: '#F0F0F0'}" :is-back="false" title="AI策略"></u-navbar>
		
		<view class="top">
			<text class="top_le">账户余额 0 USDT，您还未添加该平台的API</text>
			<view class="top_ri" @click="jine">
				<text style="font-size: 40rpx;">+</text> <text>立即添加</text>  
			</view>
		</view>
		<view class="cont">
			<view class="con_list" @click="con_ri(index)" v-for="(item,index) in list">
				<view class="con_list_true" v-if="item.c">
					<view class="con_list_text1">
						BCH/USDT   <text>循环策略</text>
					</view>
					<view class="con_list_text2">
						<view class="">
							<view class="">
								当前盈亏：0 USDT
							</view>
							<view class="">
								持仓数量：0 USDT
							</view>
						</view>
						<view class="con_list_text2_ri">
							<image src="../../static/my/gd.png" mode=""></image>
						</view>
					</view>
				</view>
				<view class="con_list_false" v-else>
					<view class="con_list_text1">
						BCH/USDT
					</view>
					<view class="con_list_text2">
						<text style="font-size: 40rpx;">+</text>  &nbsp;&nbsp; <text> 添加策略</text>
					</view>
				</view>
				
			</view>
			<view class="" style="height: 40rpx;">
				
			</view>
		</view>
		
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[{c:false},{c:true},{c:true},{c:false},{c:false},{c:false}]
			}
		},
		methods: {
			// // 添加api
			con_ri(index){
				// console.log(index);
				// this.list[index].c=!this.list[index].c
				uni.navigateTo({
					url: '/pages/home_page/strategy'
				});
			},
			// 添加策略金额
			jine(){
				uni.navigateTo({
					url: '/pages/home_page/Entrusted_funds'
				});
			},
			
			// api(){
				
			// },
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #F0F0F0;
		height: 80vh;
	}
	.top{
		width: 100vw;
		height: 138rpx;
		background: #1989FA;
		border-radius: 20rpx;
		display: flex;
		position: relative;
		color: #FFFFFF;
		font-size: 24rpx;
	}
	.top_ri{
		width: 160rpx;
		height: 100%;
		background-color: rgba(46, 164, 255, 1);
		border-radius: 20rpx;
		margin-top: 10rpx;
		position: absolute;
		right: 14rpx;
		text-align: center;
		
	}
	.top_ri text:nth-child(2){
		position: relative;
		top: -5rpx;
	}
	.top_le{
		margin-left: 30rpx;
		margin-top: 20rpx;
	}
	.cont{
		background-color: #FFFFFF;
		width: 100vw;
		position: relative;
		top: -70rpx;
		border-radius: 20rpx 20rpx 0rpx 0rpx;
		padding-left: 4vw;
		padding-right: 4vw;
		height: 82vh;
		overflow-y:scroll ;
	}
	.con_list_true{
		display: block;
		height: 166rpx;
		border-bottom: 1px solid #E0E0E0;
		line-height: 86rpx;
		position: relative;
	}
	.con_list_true .con_list_text1 text{
		display: inline-block;
		padding-left: 11rpx;
		padding-right: 11rpx;
		height: 34rpx;
		background: rgba(225, 237, 250, 1);
		border-radius: 17rpx;
		position: relative;
		top: 0rpx;
		left: 10rpx;
		text-align: center;
		color: rgba(25, 137, 250, 1);
		line-height:34rpx ;
		font-size: 10rpx;
		font-weight: 500;
	}
	.con_list_true .con_list_text2{
		display: flex;
		position: absolute;
		left: 0rpx;
		line-height: 30rpx;
		font-size: 20rpx;
	}
	.con_list_text2 text:nth-child(1){
		position: relative;
		top: -2rpx;
		left: -10rpx;
	}
	.con_list_true .con_list_text2{
		display: flex;
		position: absolute;
		left: 0rpx;
		line-height: 30rpx;
		font-size: 20rpx;
	}
	.con_list_text2_ri{
		position: absolute;
		right: 20rpx;
		top: -10%;
		font-size: 40rpx;
	}
	.con_list_text2_ri image{
		width: 13rpx;
		height: 24rpx;
	}
	
	.con_list_false{
		display: flex;
		height: 86rpx;
		border-bottom: 1px solid #E0E0E0;
		line-height: 86rpx;
		position: relative;
	}
	.con_list_text1{
		font-size: 28pxr;
		font-family: PingFang SC;
		font-weight: 600;
		color: #333333;
	}
	.con_list_text2{
		font-size: 20rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #999999;
		position: absolute;
		right: 0rpx;
	}
	.con_list_text2 text:nth-child(2){
		position: relative;
		top: -4rpx;
	}
	
</style>
